#ifndef GETAPPLICATIONFROMSERVER_H
#define GETAPPLICATIONFROMSERVER_H

#include "./entities/message/superClass/message.h"

/*
Json数据格式
{
    "messageType": [GetFriendApplication](int)
    "id": [id](int) 这个字段用来确保收到客户端收到好友请求消息
}
// 服务器只要收到了这条消息就代表客户端接受到了好友申请转发
*/
class GetApplicationFromServer : public Message
{
public:
    GetApplicationFromServer() = delete;

    GetApplicationFromServer(const Id& id);
    GetApplicationFromServer(const QJsonObject&);
    QJsonObject PackJsonData() const override;
    Id getId() const;

private:
    Id m_id;
};

// 编译时注册
Q_DECLARE_METATYPE(GetApplicationFromServer)

#endif // GETAPPLICATIONFROMSERVER_H
